public Socket createSocket() throws IOException {
if(! isStarted())
return null;
return getSocket();
}
private Socket getSocket() throws SocketException {
public Socket createSocket() throws IOException {
if(! isStarted())
return null;
SocketChannel s = getSocket();
s.configureBlocking(true);
return s.socket();
}